package model

import (
	"time"
)

type AuCarDealer struct {
	DealerId            int       `xorm:"not null pk autoincr INT(10)"`
	DepartId            int       `xorm:"not null INT(11)"`
	Category            int       `xorm:"not null default 1 INT(3)"`
	BailAmount          float64   `xorm:"not null DOUBLE(10,2)"`
	FreezeAmount        float64   `xorm:"not null DOUBLE(10,2)"`
	IndemnityAmount     float64   `xorm:"not null DOUBLE(10,2)"`
	OrgCode             string    `xorm:"not null VARCHAR(20)"`
	Fullname            string    `xorm:"not null VARCHAR(100)"`
	Shortname           string    `xorm:"not null VARCHAR(20)"`
	Type                int       `xorm:"not null SMALLINT(3)"`
	ContactPerson       string    `xorm:"not null VARCHAR(30)"`
	Email               string    `xorm:"not null VARCHAR(60)"`
	Province            int       `xorm:"not null INT(10)"`
	City                int       `xorm:"not null INT(10)"`
	Area                int       `xorm:"not null INT(10)"`
	Address             string    `xorm:"not null VARCHAR(200)"`
	Postcode            string    `xorm:"not null VARCHAR(6)"`
	Level               int       `xorm:"not null default 0 SMALLINT(3)"`
	Status              int       `xorm:"not null default 1 SMALLINT(3)"`
	ModManNum           int       `xorm:"not null SMALLINT(3)"`
	DealerIdcard        string    `xorm:"not null VARCHAR(20)"`
	StartAuRemind       int       `xorm:"not null TINYINT(1)"`
	TradingRemind       int       `xorm:"not null TINYINT(1)"`
	ArbitrateRemind     int       `xorm:"not null TINYINT(1)"`
	MoneyChangeRemind   int       `xorm:"not null TINYINT(1)"`
	SignTime            time.Time `xorm:"not null DATETIME"`
	IsExperienced       int       `xorm:"not null default 0 TINYINT(1)"`
	ConversionTime      time.Time `xorm:"not null DATETIME"`
	AuthType            int       `xorm:"not null default 0 TINYINT(1)"`
	IdcardFrontPic      string    `xorm:"VARCHAR(255)"`
	IdcardBackPic       string    `xorm:"VARCHAR(255)"`
	IdcardHoldPic       string    `xorm:"VARCHAR(255)"`
	IsThreeInOne        int       `xorm:"not null TINYINT(1)"`
	BusinessLicenseNum  string    `xorm:"VARCHAR(30)"`
	OrganizationCode    string    `xorm:"VARCHAR(20)"`
	TaxRegCertNo        string    `xorm:"VARCHAR(20)"`
	BusinessLicensePic  string    `xorm:"VARCHAR(255)"`
	OrganizationCodePic string    `xorm:"VARCHAR(255)"`
	TaxRegCertPic       string    `xorm:"VARCHAR(255)"`
	AuthLetterPic       string    `xorm:"VARCHAR(255)"`
	AuthStatus          int       `xorm:"not null TINYINT(1)"`
	IsAgreeAgreement    int       `xorm:"not null TINYINT(1)"`
	BusinessCity        int       `xorm:"not null INT(11)"`
	ApplyAuthTime       time.Time `xorm:"DATETIME"`
	AuthAuditTime       time.Time `xorm:"DATETIME"`
	WaitAuthTraceStatus int       `xorm:"not null default 0 TINYINT(1)"`
	SignContractNo      string    `xorm:"VARCHAR(50)"`
	SignTraceStatus     int       `xorm:"not null default 0 TINYINT(1)"`
	DealerType          int       `xorm:"not null default 0 TINYINT(1)"`
	MinusAmount         float64   `xorm:"not null DOUBLE(10,2)"`
	Createtime          time.Time `xorm:"not null DATETIME"`
	IsPrompt            int       `xorm:"not null default 0 TINYINT(1)"`
}
